home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
(A)TA
/
(A)TAV.ADF
/
Q-Cat
/
QCAT.DOC
< prev
next >
Wrap
Text File
|
1988-12-29
|
3KB
|
94 lines
11/88
QCAT v0.01 -- List files on disks or in directories
-----------------
Copyright (C) 1988 by Daniel Elbaum
This software is freely redistributable provided that:
the three files which comprise it (qcat, qcat.c, qcat.doc)
remain intact; all copyright notices contained in any of
the aforementioned files remain intact; and no fee beyond
reasonable remuneration for collation and distribution be
charged for use and/or purveyance.
-----------------
Syntax:
qcat [-o filename] [dirname ...]
or
qcat [-o filename] -c drive
Qcat simply produces a listing of the full pathname of all
files in a list of directories or in a series of disks.
With no arguments, a list is produced of the files in the
current directory and all its sub directories.
-o redirects the list to a file of the specified name, wiping
out any file of that name which may already exist.
-c causes a continuous listing of a single drive. A requestor
comes up prompting for a disk to be inserted; the names of the
files on that disk are read, and the requestor comes back asking
for the next disk. When all the disks you want to catalog have
been fed in, click on the 'Quit' gadget, and the complete file
list will be output.
Instead of -c and a drive name, a bunch of directory names can
be given on the command line. A single list will be output of
all the files in all the specified directories and their sub-
directories.
Nota Bene:
The list won't be sorted. There are plenty of utilities out
there which sort files by line, so I didn't want to bloat
this program with the extra functionality. If enough people
want a sorting option, I'll add one.
If the directory trees to be listed are deep (lots of sub-
directories), the be sure to set the stack size to something
like 10000 or so, since the recursive routine that does the
spelunking is pretty stack-hungry.
The purpose of qcat is to list disks or directories, given a
simple command line, without involving the user in an interactive
experience. One good use for it is to make a listing for a set
of disks, then use the list to find out where particular files
are located. Should come in handy for those Fish disks, eh?
The way it works is to keep a linked list of filenames in memory
until all disks or directories have been read, and then to dump
the list. If memory gets low, the list will be dumped several
times during the reading, so even if you have lots of disks to
look at or not much memory or both, qcat should function smoothly.
If you want to send me money for qcat, then by all means
do so--many projects are in progress and I need financing.
$5.00 is recommended. Make checks payable to:
Daniel Elbaum
Amaranth Software
4816 SE Bybee Blvd.
Portland, Ore. 97206
Send comments, suggestions, and flames to:
Daniel Elbaum
Portland bbs: Amigaboard!, NAG, HABIT
UUCP: ...!tektronix!reed!elbaum
ARPA: elbaum@reed.EDU